package com.colin.service.impl;

import com.colin.mapper.YouLianMapper;
import com.colin.pojo.YouLian;
import com.colin.service.YouLianService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class YouLianServiceImpl implements YouLianService {
    @Autowired
    YouLianMapper youLianMapper;

    @Override
    public List<YouLian> findYouLian () {
        return youLianMapper.findYouLian();
    }

    @Override
    public void insert (YouLian y) {
        youLianMapper.insert(y);
    }

    @Override
    public void deleteYouLian (Integer id) {
        youLianMapper.deleteYouLian(id);
    }

    @Override
    public int findCount () {
        return youLianMapper.findCount();
    }
}
